/**
 * 
 */
package me.myachievements.web.account;

import me.myachievements.persistence.account.Account;
import me.myachievements.web.PersistentObjectModel;

import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;

/**
 * @author besseym
 *
 */
public class UpdateAccountForm extends AccountForm {

	/**
	 * @param id
	 * @param iModel
	 */
	public UpdateAccountForm(String id, String legend, Account account) {
		super(id, legend, new PersistentObjectModel<Account>(account));
	}
	
	@Override
	protected void onSubmit(){
		Account account = this.getModelObject();
		accountPersistenceManager.update(account);
	}

}
